import $axios from './index.js'

// 插件列表
function pluginList(data = {}) {
  const url = '/plugin/list'
  return $axios.get(url, data)
}

function install(data = {}) {
  const url = '/plugin/install'
  return $axios.post(url, data)
}

function uninstall(data = {}) {
  const url = '/plugin/uninstall'
  return $axios.post(url, data)
}

function editStatus(data = {}) {
  const url = '/plugin/editStatus'
  return $axios.post(url, data)
}

export default {
  pluginList,
  install,
  uninstall,
  editStatus
}
